city()
function city(){
    $.ajax({
        type: "get",
        url: "http://localhost:8081/area/city",
        data: {
            level:1
        },
        success: function (response) {
            let data = response.body
            data.forEach(item => {
                let module = `
                    <h3 class="btn">${item.label}<span>${item.pinyin}</span></h3>
                `
                $('.data_list').append(module)
                $('.btn').on('click',function(){
                    if ($(this).children().text() === item.pinyin) {
                        localStorage.setItem('id',item.value)
                        localStorage.setItem('data',JSON.stringify(data))
                        location.href = '../index.html'
                    }
                })
            });
        }
    });
}
